package com.movitech.mobile.cz.base.common.bpm;

import com.movitech.mobile.cz.base.common.util.NumberUtils;

public class FlowSourcingDecisionDataVo implements Comparable<FlowSourcingDecisionDataVo>  {

    private String sdiSdId;//采购系统定标审定表uuid
    private String sdiSpId;//供应商id
    private String sdiSpName;//供应商名称
    private String sdiCert;//资质
    private String sdiBrand;//品牌
    private String sdiTotalValue;//最终金额   不含税
    private String sdiSegmentDesc;//标段名称
    private String sdiSegmentValue;//最终金额 含税
    private String sdiRank;//综合排名
    private String sdiNominated;//是否中标    N否  ,  Y是
    private String sdiHuiBiaoStatus;//回标状态  （描述）
    private String sdiServiceUuid;//采购系统定标候选人uuid

    public String getSdiSdId() {
        return sdiSdId;
    }

    public void setSdiSdId(String sdiSdId) {
        this.sdiSdId = sdiSdId;
    }

    public String getSdiSpId() {
        return sdiSpId;
    }

    public void setSdiSpId(String sdiSpId) {
        this.sdiSpId = sdiSpId;
    }

    public String getSdiSpName() {
        return sdiSpName;
    }

    public void setSdiSpName(String sdiSpName) {
        this.sdiSpName = sdiSpName;
    }

    public String getSdiCert() {
        return sdiCert;
    }

    public void setSdiCert(String sdiCert) {
        this.sdiCert = sdiCert;
    }

    public String getSdiBrand() {
        return sdiBrand;
    }

    public void setSdiBrand(String sdiBrand) {
        this.sdiBrand = sdiBrand;
    }

    public String getSdiTotalValue() {
        return sdiTotalValue;
    }

    public void setSdiTotalValue(String sdiTotalValue) {
        this.sdiTotalValue = sdiTotalValue;
    }

    public String getSdiSegmentDesc() {
        return sdiSegmentDesc;
    }

    public void setSdiSegmentDesc(String sdiSegmentDesc) {
        this.sdiSegmentDesc = sdiSegmentDesc;
    }

    public String getSdiSegmentValue() {
        return sdiSegmentValue;
    }

    public void setSdiSegmentValue(String sdiSegmentValue) {
        this.sdiSegmentValue = sdiSegmentValue;
    }

    public String getSdiRank() {
        return sdiRank;
    }

    public void setSdiRank(String sdiRank) {
        this.sdiRank = sdiRank;
    }

    public String getSdiNominated() {
        return sdiNominated;
    }

    public void setSdiNominated(String sdiNominated) {
        this.sdiNominated = sdiNominated;
    }

    public String getSdiHuiBiaoStatus() {
        return sdiHuiBiaoStatus;
    }

    public void setSdiHuiBiaoStatus(String sdiHuiBiaoStatus) {
        this.sdiHuiBiaoStatus = sdiHuiBiaoStatus;
    }

    public String getSdiServiceUuid() {
        return sdiServiceUuid;
    }

    public void setSdiServiceUuid(String sdiServiceUuid) {
        this.sdiServiceUuid = sdiServiceUuid;
    }

    @Override
    public int compareTo(FlowSourcingDecisionDataVo o) {
        return ((NumberUtils.toDouble(sdiSegmentValue)==NumberUtils.toDouble(o.getSdiSegmentValue()))?0:(NumberUtils.toDouble(sdiSegmentValue)-NumberUtils.toDouble(o.getSdiSegmentValue()))>0?1:-1);
    }
}
